<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新闻详情</title>
    <link rel="stylesheet" href="./css/bootstrap.min.css">
    <link rel="stylesheet" href="./css/main.css">
</head>
<body>
<div class="navbar navbar-default">
    <div class="container">
        <div class="navbar-header">
            <a href="index.html" class="navbar-brand"></a>
        </div>
        <label for="toggle-checkbox" id="toggle-label" class="visible-xs-inline-block">菜单</label>
        <input type="checkbox" class="hidden" id="toggle-checkbox">
        <div class="hidden-xs">
            <ul class="nav navbar-nav">
                <li class="${(tid==0)?string("active","")}"><a href="all_news?flag=0&typeId=0">首页</a></li>
                <#list allType as at>
                    <li class="${(tid==at.typeId)?string("active","")}"><a href="all_news?flag=1&typeId=${at.typeId}" >${at.typeName}</a></li>
                </#list>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="login.html">登陆</a></li>
                <li><a href="signup.html">注册</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="container">
    <div class="col-xs-8">
        <h1 class="news-title">${news.summary}</h1>
        <div class="news-status">${news.readNum}阅读•35前发布
            <#list news.tagList as t>
                <div class="label label-default">${t.tagName}</div>
            </#list>
            <#--<div class="label label-default">教育</div>
            <div class="label label-default">情感</div>-->
        </div>
        <div class="news-content">
            <blockquote>
                <p>${news.newsName}</p>
            </blockquote>
            <div>${news.content}</div>
        </div>
    </div>
    <div class="col-xs-4">
        <div class="side-bar-card">
            <div class="card-title">相关推荐</div>
            <div class="card-body">
                <div class="list">
                    <#list hotNews as hn>
                        <div class="item clearfix">
                            <div class="col-xs-5 no-padding-h"><img src="./img/${hn.img}"></div>
                            <div class="col-xs-7">
                                <div class="title">${hn.newsName}</div>
                                <div class="desc">${hn.readNum}阅读•35分钟前发布</div>
                            </div>
                        </div>
                    </#list>
                    <#--<div class="item clearfix">
                        <div class="col-xs-5 no-padding-h"><img src="https://dummyimage.com/1000x700/666/ccc"></div>
                        <div class="col-xs-7">
                            <div class="title">记结婚高圆圆与赵又廷北京登</div>
                            <div class="desc">25k阅读•35分钟前发布</div>
                        </div>
                    </div>
                    <div class="item clearfix">
                        <div class="col-xs-5 no-padding-h"><img src="https://dummyimage.com/1000x700/666/ccc"></div>
                        <div class="col-xs-7">
                            <div class="title">记结婚高圆圆与赵又廷北京登</div>
                            <div class="desc">25k阅读•35分钟前发布</div>
                        </div>
                    </div>
                    <div class="item clearfix">
                        <div class="col-xs-5 no-padding-h"><img src="https://dummyimage.com/1000x700/666/ccc"></div>
                        <div class="col-xs-7">
                            <div class="title">记结婚高圆圆与赵又廷北京登</div>
                            <div class="desc">25k阅读•35分钟前发布</div>
                        </div>
                    </div>
                    <div class="item clearfix">
                        <div class="col-xs-5 no-padding-h"><img src="https://dummyimage.com/1000x700/666/ccc"></div>
                        <div class="col-xs-7">
                            <div class="title">记结婚高圆圆与赵又廷北京登</div>
                            <div class="desc">25k阅读•35分钟前发布</div>
                        </div>
                    </div>
                    <div class="item clearfix">
                        <div class="col-xs-5 no-padding-h"><img src="https://dummyimage.com/1000x700/666/ccc"></div>
                        <div class="col-xs-7">
                            <div class="title">记结婚高圆圆与赵又廷北京登</div>
                            <div class="desc">25k阅读•35分钟前发布</div>
                        </div>
                    </div>-->
                </div>
            </div>
        </div>
        <div class="side-bar-card">
            <div class="card-title">24小时热闻</div>
            <div class="card-body">
                <div class="list">
                    <#list hotNews as hn>
                        <div class="item">
                            <a class="title" href="/get_news?newsId=${hn.newsId}">${hn.newsName}</a>
                            <div class="desc">${hn.readNum}阅读　1k评论</div>
                        </div>
                    </#list>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="footer">
    Copyright © 2017 jkdev.cn | 极客开发者2017版
</div>
</body>
</html>